<script setup>
// 导入计数器模块的 useCounterStore 函数
import useCounterStore from "../stores/counter.js";

// 创建 store 对象
let counterStore = useCounterStore();

</script>

<template>
<div>
  <h1>当前计数：{{ counterStore.count }}</h1>
  <h1>计数奇偶：{{ counterStore.oddOrEven }}</h1>
</div>
</template>

<style scoped>

</style>